package com.example.dockerdemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("tb_test")
public class MyEntity {

    @TableId(value = "id", type = IdType.INPUT)
    Long id;
    String col1;
    String col2;

    @Override
    public String toString() {
        return "MyEntity{" +
                "id=" + id +
                ", col1='" + col1 + '\'' +
                ", col2='" + col2 + '\'' +
                '}';
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCol1() {
        return col1;
    }

    public void setCol1(String col1) {
        this.col1 = col1;
    }

    public String getCol2() {
        return col2;
    }

    public void setCol2(String col2) {
        this.col2 = col2;
    }

    public MyEntity(Long id, String col1, String col2) {
        this.id = id;
        this.col1 = col1;
        this.col2 = col2;
    }

    public MyEntity(String col1, String col2) {
        this.col1 = col1;
        this.col2 = col2;
    }
}
